home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1993-11-07 | 2.3 KB | 54 lines | [ ttro/ttxt]
AOCE Software Developers Kit 1.0 November 5, 1993 ----------------------------------------------------------------------------- Audit Library Audit is a small library of functions that provide an unobtrusive event tracing capability to applications, drivers, code-resources, call-backs, and any other "flavor" of Macintosh software. The initialization function (InitAudit) must be called from a "memory-safe" environment (i.e., InitAudit may not be called from a driver completion routine), but all other functions may be called at any time. The audit functions are defined by comments in Audit.h and Audit.c. The DisplayAudit application may be used to follow the execution of a program being audited. It can display auditing from several sources, and allows logging the audited data to a text file. The following are provided: • Audit.h -- this header file must be included by all functions that use Audit. It defines the structures and kernel functions that are needed. • Audit.c -- this file contains the C functions that support debugging. It is linked into all modules that need this support. • AuditDCMD.c -- this is the source for a MacsBug dcmd (formatting command) that can be used to display the current debug log data area within MacsBug or, presumably, TMON. • MakeFile -- this MPW command file builds and installs AuditDCMD. It can also build DisplayAudit. • AuditEntryFormat.c -- this file formats an audit record. • DisplayAudit.π -- This Think C Project file builds DisplayAudit. • MakeFile -- this MPW MakeFile builds the Audit DCMD and the DisplayAudit application. • dcmds -- this folder contains a copy of the MacsBug dcmd support functions. Building: • Use the MakeFile to compile and install Audit in your MacsBug preferences file. You must reboot your system to use the audit dcmd. • Build DisplayAudit using either the MPW or Think version. • Copy Audit.h and Audit.c to the source folders for applications (etc.) that need logging capability. Requirements • MPW 3.2 • Think C 6.0 ----------------------------------------------------------------------------- Copyright © 1992-93, Apple Computer Inc. All Rights Reserved. This tool is provided as part of the AOCE SDK. Use of this tool for any purpose other than the development of AOCE-based Macintosh® products is a violation of the license agreement covering this SDK.